//
//  XDKeWaiCell.m
//  XDEducation
//
//  Created by 星道 on 17/5/15.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "XDKeWaiCell.h"

@implementation XDKeWaiCell
{
    IBOutlet UILabel *_ErrCount;
    IBOutlet UILabel *_Title;
    IBOutlet UILabel *_Type;
}



- (void)setModel:(XDErrProblemKeWai *)Model
{
    _Model = Model;
    _Title.text = Model.homework_name;
    _ErrCount.text =[NSString stringWithFormat:@"错题数目:%ld",[Model.error_count integerValue]];
    switch ([Model.subjectid    integerValue])
    {
        case 1:_Type.text = @"语言巩固";break;
        case 2:_Type.text = @"数学巩固";break;
        case 3:_Type.text = @"英文巩固";break;
        default:break;
    }
}

- (void)setQuanModel:(XDErrProblemQuanNeng *)QuanModel
{
    _QuanModel = QuanModel;
    _Title.text = QuanModel.title;
    _ErrCount.text =[NSString stringWithFormat:@"错题数目:%ld",[QuanModel.errorNum integerValue]];
    _Type.text = @"详情";
}

- (void)setKeQianModel:(XDErrProblemKeQian *)KeQianModel
{
    _KeQianModel = KeQianModel;
    _Title.text = KeQianModel.homework_name;
    _ErrCount.text =[NSString stringWithFormat:@"错题数目:%ld",[KeQianModel.error_count integerValue]];
    _Type.text = @"详情";
}

- (void)setKeTangModel:(XDErrProblemKeTang *)KeTangModel
{
    _KeTangModel = KeTangModel;
    _Title.text = KeTangModel.homework_name;
    _ErrCount.text =[NSString stringWithFormat:@"错题数目:%ld",[KeTangModel.error_count integerValue]];
    _Type.text = @"详情";
}
@end
